package com.lhl;

import com.lhl.type1.*;

/**
 * @author hanLin.liu
 * @create 2024-10-10 18:04
 */
public class Main {
    public static void main(String[] args) {
        AbstractHandler handler = new FirstHandler();
        handler.setNextHandler(new ConcreteHandler1())
                .setNextHandler(new ConcreteHandler2());

        handler.handle(12);
    }
}
